<?php

namespace app_supplier\models;

use Yii;

/**
 * This is the model class for table "store_purchasing_material".
 *
 * @property integer $id
 * @property integer $dpd_id
 * @property integer $dealer_id
 * @property string $car_type
 * @property string $material_name
 * @property string $dealer_material_type
 * @property string $material_brand
 * @property string $material_version
 * @property integer $material_number
 * @property string $material_price
 * @property string $describe
 */
class StorePurchasingMaterial extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'store_purchasing_material';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['dpd_id', 'dealer_id', 'material_number'], 'integer'],
            [['material_price'], 'number'],
            [['car_type', 'material_name', 'dealer_material_type', 'material_brand', 'material_version'], 'string', 'max' => 128],
            [['describe'], 'string', 'max' => 256],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'dpd_id' => 'Dpd ID',
            'dealer_id' => 'Dealer ID',
            'car_type' => 'Car Type',
            'material_name' => 'Material Name',
            'dealer_material_type' => 'Dealer Material Type',
            'material_brand' => 'Material Brand',
            'material_version' => 'Material Version',
            'material_number' => 'Material Number',
            'material_price' => 'Material Price',
            'describe' => 'Describe',
        ];
    }
}
